﻿using FluentNHibernate.Mapping;
using ScriptManager.Data.Domain.Entities;

namespace ScriptManager.Data.Domain.Mapping
{
    public class ScriptMap : ClassMap<Script>
    {
        public ScriptMap()
        {
            Id( m => m.ID ).GeneratedBy.Identity();
         
            Map( m => m.Name ).WithLengthOf( 50 ); 
            Map( m => m.Fund ).WithLengthOf( 10 ); 
            Map( m => m.ShortDescription ).WithLengthOf( 50 ); 
        }
    }
}